
function unique(arr, field) {
	let last = arr
	
	for(let i = 0; i < last.length; i++){
		for(let j = i+1; j< last.length; j++){
			if(last[i][field] == last[j][field]){
				last.splice(j,1);
				j--
			}
		}
	}
	return last
}

export default unique